Mutable HashMap Keys
Hash-based lookup depends on the key's hash value.
Changing equality-relevant state can change the bucket mapping.
The entry may remain physically stored in its old bucket.
Removal using the mutated key may also fail.
Immutable keys are safer and easier to reason about.
If mutation is unavoidable, fields participating in equality and hashing should not change while the key is in the map.